﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace OpenXML.BLL
{
    public class Applicant
    {
        public string ID { get; set; }
        public string lastName { get; set; }
        private string middleName { get; set; }
        public string firstName { get; set; }
        public string email { get; set; }
        public string country { get; set; }
        public string nationality { get; set; }
        private string nationality2 { get; set; }
        public string phoneNumber { get; set; }
        private string gender { get; set; }
        public string currentYear { get; set; }
        public string applyingFor { get; set; }

        public void setMiddleName(string m)
        {
            if (string.IsNullOrWhiteSpace(m))
                this.middleName = "";
            else
                this.middleName = m;
        }

        public string getMiddleName()
        {
            return this.middleName;
        }

        public void setNationality2(string m)
        {
            if (string.IsNullOrWhiteSpace(m))
                this.nationality2 = "";
            else
                this.nationality2 = m;
        }

        public string getNationality2()
        {
            return this.nationality2;
        }

        public void setGender(int g)
        {
            if (g == 1)
                this.gender = "Male";
            else
                this.gender = "Female";
        }

        public string getGender()
        {
            return this.gender;
        }

    }
}